namespace java com.xzw.thrift

namespace as3 com.xzw.thrift

struct User{

   1:i32 userId,

   2:string loginName,

   3:string password,

   4:string name

}

exception UserNotFound{

   1:string msg  //as3中由于message是关键字，所以避免使用message关键字。

}

service UserService{

User getUser(1:string loginName) throws (1:UserNotFound unf),

   list<User> getUsers()

}
